import { createMemoryHistory, createRouter,createWebHistory, } from 'vue-router'
import Register from '../views/register.vue'

const routes = [
    { path: '/login', component: () => import('@/views/login.vue') },
    { path: '/register', component: ()=> import('@/views/register.vue') },
    { path: '/home', component :()=> import('@/views/home.vue') },
    { path: '/userInfo', component :()=> import('@/views/userInfo.vue') },
    { path: '/', redirect: '/login' },



]

const route = createRouter({
    history: createWebHistory(),
    routes
})

export default route
